package com.tenement.base.exception;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 自定义异常,传来的参数为空
 * 
 * @author wk
 *
 */
public class ParameterException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	private static final Log logger = LogFactory.getLog(ParameterException.class);

	private String parameterName;// 参数名称
	
	private String exceptionMessage;
	
	public String getParameterName() {
		return parameterName;
	}

	public void setParameterName(String parameterName) {
		this.parameterName = parameterName;
	}

	public ParameterException() {
		super();
	}

	public ParameterException(String parameterName) {
		super(parameterName);
		this.parameterName = parameterName;
	}

	public String getExceptionMessage() {
		return exceptionMessage;
	}

	public void setExceptionMessage(String exceptionMessage) {
		this.exceptionMessage = exceptionMessage;
	}
}
